package com.example.practice.web;

import com.example.practice.manager.DemoManager;
import com.example.practice.pojo.DemoVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Description:
 * @author: helong.sun
 * @date: 2020-12-23 16:27
 * @Version 1.0
 **/
@RestController
@RequestMapping("/v1/api/demo")
public class DemoController {

    @Autowired
    private DemoManager demoManager;

    @PostMapping("/getName")
    private String getName(@RequestBody DemoVO demoVO){
       return demoManager.getName(demoVO);
    }
}
